		<script type="text/javascript">
 			$(function(){
 	 			$('#dateon').datepicker({changeYear: true,changeMonth:true ,showButtonPanel: true,yearRange:"150:2020"});
 	 			$('#dateoff').datepicker({changeYear: true,changeMonth:true ,showButtonPanel: true,yearRange:"150:2020"});
 			});
 		</script>
<form action="<?php echo $this->url(array("action"=>"add")) ?>" method="post" id="insert-form" enctype="multipart/form-data">
   
                <div class="form-left">
                    <label for="EName">Tên Sự Kiện: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="EName" class="txt" id="EName" />
                    <?php echo $this->errN?>
                </div>
                <div class="form-left">
                    <label for="DateOn">Ngày Bắt Đầu: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="DateOn" class="txt" id="dateon" />
                    <?php echo $this->errDon?>
                </div>
                <div class="form-left">
                    <label for="DateOff">Ngày Kết Thúc: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="DateOff" class="txt" id="dateoff" />
                    <?php echo $this->errDoff?>
                </div>
                <div class="form-left">
                    <label for="SDesc">Giới Thiệu: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="SDesc" class="txt" id="SDesc" />
                    <?php echo $this->errSD?>
                </div>
 
				 	<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/ckeditor/ckeditor.js"></script>
					<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/ckeditor/_samples/sample.js"></script>

                <div class="form-left">
                    <label for="desc">Mô Tả: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <textarea name="LDesc" id="editor" class="txt editor" cols="100" rows="200" id="desc"></textarea>
                    <script type="text/javascript">CKEDITOR.replace( 'editor' );</script>
					<?php echo $this->errLD?>
                </div>
                <div class="form-left">
                    <label for="preview">Hình Ảnh: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="file" name="event" class="txt" id="event" />
                </div>
                <div class="form-left">
                    <label for="Link">Link Hình: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <input type="text" name="Link" class="txt" id="Link" />
                </div>
                <div class="form-left">
                    <label for="stt">Trạng Thái: <span class="required">*</span></label>
                </div>
                <div class="form-right">
                    <select name="stt" id="theme">
                        <option value="1">Kích Hoạt</option>
                        <option value="0">Không Kích Hoạt</option>
                    </select>
                </div>
               
                <div class="clear" style="text-align:right; width:372px">
                    <input type="submit" value="Save" style="float:right" />
                </div>
 			</form>
 			<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/tablesort.js"></script>
    		<script type="text/javascript" src="<?php echo $this->baseUrl()?>/public/js/jquery.nyromodal-1.6.2.pack.js"></script>
    		<script type="text/javascript" charset="utf-8" src="<?php echo $this->baseUrl()?>/public/js/jquery.uniform.min.js" ></script>